Pod::Spec.new do |s|
    s.name              = 'HXCodeLibrary'
    s.version           = '0.0.1'
    s.license           = { :type => 'BSD' }
    s.summary           = 'core app level code library'
    s.homepage          = '_blank'
    s.authors           = { 'marco' => 'guyingjong@gmail.com' }
    s.source            = { :path => 'HXCodeLibrary/', :submodules => true }
    s.requires_arc      = false

    s.ios.deployment_target = '6.0'

    # define for test pods import is fine.
    #s.public_header_files = 'FrameWork/log/*.h' 
    #s.source_files = 'FrameWork/log/*.{h,m}'

    s.public_header_files = '*.h'
    s.source_files = '*.h', 'FrameWork/util/*.h', 'FrameWork/util/des/*.h', 
                'FrameWork/net/*.h', 
                'FrameWork/model/*.h', 'FrameWork/lua/*.h', 
                'FrameWork/lua/luacore/*.h' , 'FrameWork/log/*.h',
                'FrameWork/engine/*.h', 'Engine/*.h', 'CustomView/*.h', 
                'FrameWork/hpui/*.h', 'DataModel/*.h', 'ViewController/*.h',
                'FrameWork/hpui/HPCustomView/*.h', 'refactorClass/*.h',
                'MacAddress/*.h', 'UDIDTools/*.h', 'FrameWork/file/*.h',
                'ZZTongUtil/*.h', 'Map/*.h', 'ViewController/WelcomeScreen/*.h', # flag: can be startup
                # apackage import
                'ViewController/LoginScreen/*.h', 
                # a package import
                'ViewController/AccountIndex/*.h',
                'ViewController/CollectMoney/*.h', 'ViewController/CollectMoney/CustomButton/*.h',
                'ViewController/Function/*.h',
                # a package import 
                'ViewController/SwiperSelect/*.h', 'ViewController/SwiperScreen/*.h',
                # balance query package
                'ViewController/BalanceQuery/*.h',
                # fast transfer package
                'ViewController/Function/FastTransfer/*.h',
                'ViewController/Function/FastTransfer/CardIdentify/*.h',
                'ViewController/Function/CardORRecord/*.h',
                'ViewController/Function/CMTransRecord/*.h',
                'ViewController/Function/TransRecord/*.{h,m}',
                'ViewController/TransactionResult/Success/*.h',
                'ViewController/TransactionResult/fail/*.h',
                'ViewController/UserHelp/*.h',
                # collect money package
                'ViewController/SignTransaction/*.h',
                'ViewController/AddUserSign/*.h'


    s.frameworks = 'Security', 'Foundation'
    #s.libraries = 'libz.dylib'

    s.subspec 'HPFramework' do |ss|
        ss.source_files = 'FrameWork/util/*.{h,m,c}', 'FrameWork/util/des/*.{h,m,c}', 
                'FrameWork/net/*.{h,m,c,cpp}', 
                'FrameWork/model/*.{h,m}', 'FrameWork/lua/*.{h,m,c}', 
                'FrameWork/lua/luacore/*.{h,m,c}' , 'FrameWork/log/*.{h,m}', 
                'FrameWork/engine/*.{h,m}', 'Engine/*.{h,m}', 'CustomView/*.{h,m}', 
                'ViewController/Function/*.{h,m}', 
                'FrameWork/hpui/*.{h,m}', 'DataModel/*.{h,m}', 'ViewController/*.{h,m}',
                'ViewController/SwiperSelect/*.{h,m}', 'FrameWork/hpui/HPCustomView/*.{h,m}',
                'refactorClass/*.{h,m}', 'MacAddress/*.{h,m}', 'UDIDTools/*.{h,m}',
                'FrameWork/file/*.{h,m}', 'ZZTongUtil/*.{h,m}', 'Map/*.{h,m}', 
                'ViewController/WelcomeScreen/*.{h,m}', 
                #----------------------------------------
                'ViewController/LoginScreen/*.{h,m}',
                #----------------------------------------
                'ViewController/AccountIndex/*.{h,m}',
                'ViewController/CollectMoney/*.{h,m}', 'ViewController/CollectMoney/CustomButton/*.{h,m}',
                #----------------------------------------
                'ViewController/SwiperSelect/*.{h,m}',
                'ViewController/SwiperScreen/*.{h,m}',
                #----------------------------------------
                'ViewController/BalanceQuery/*.{h,m}',
                #----------------------------------------
                'ViewController/Function/FastTransfer/*.{h,m}',
                'ViewController/Function/FastTransfer/CardIdentify/*.{h,m}',
                'ViewController/Function/CardORRecord/*.{h,m}',
                'ViewController/Function/CMTransRecord/*.{h,m}',
                'ViewController/Function/TransRecord/*.{h,m}',
                'ViewController/TransactionResult/Success/*.{h,m}',
                'ViewController/TransactionResult/fail/*.{h,m}',
                'ViewController/UserHelp/*.{h,m}',
                #----------------------------------------
                'ViewController/SignTransaction/*.{h,m}',
                'ViewController/AddUserSign/*.{h,m}'


        ss.resources = "ViewController/**/*.{xib}", "CustomView/*.{xib}"

    end

end